{extend name="$_admin_base_layout" /} {block name="body"}
<div class="container-fluid" style="padding-top: 10px; background-color: rgb(240, 242, 245);">
	<div class="panel">
		<div class="panel-body">
			<form class="form-inline form-search">
				<div class="form-group">
					<label>模块名称：</label>
					{html:select name="module" options="module_list" selected="module" clazz="form-control"/}
				</div>
				<div class="form-group">
					<label>模型名称：</label>
					<input type="text" class="form-control" name="model" value="{$model|default=''}">
				</div>
				<div class="form-group">
					<label>数据ID：</label>
					<input type="text" class="form-control" name="record_id" value="{$record_id|default=''}">
				</div>

				<div class="form-group">
					<label>日志内容：</label>
					<input type="text" class="form-control" name="remark" value="{$remark|default=''}">
				</div>
				<button type="submit" class="btn btn-primary">查询</button>
			</form>
		</div>
		<!-- 数据表格 -->
		<table class="table table-sorter">
			<!-- 表头 -->
			<thead>
				<tr>
					<th style="width: 20px;">#</th>
					<th>模块名称</th>
					<th>模型名称</th>
					<th>数据ID</th>
					<th>日志内容</th>
					<th>其它</th>
					<th>操作人</th>
					<th>操作IP</th>
					<th>操作时间</th>
				</tr>
			</thead>
			<!-- 列表 -->
			<tbody>
				{notempty name="data_list"} {volist name="data_list" id="info"}
				<tr>
					<td>{$i}</td>
					<td>{$info.module_text}</td>
					<td>{$info.model}</td>
					<td>{$info.record_id}</td>
					<td>{$info.remark}</td>
					<td>{$info.extra}</td>
					<td>{$info.create_by_cn}</td>
					<td>{$info.action_ip|long2ip}</td>
					<td>{$info.create_time|date='Y-m-d H:i'}</td>
				</tr>
				{/volist} {else/}
				<tr>
					<td class="text-center" colspan="9">aOh! 暂时还没有内容!</td>
				</tr>
				{/notempty}
			</tbody>
			<tfoot>
				<tr>
					<td colspan="9">{$pager||raw}</td>
				</tr>
			</tfoot>
		</table>
	</div>
</div>
{/block}
